import java.util.Scanner;
public class String_Demo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("Enter String");
        java.lang.String str = sc.next();
        char c[] = str.toCharArray();   //将字符串转换为字节数组
        for(int j=0;j<c.length;j++){
            System.out.println("c["+j+"]"+c[j]);
        }
        int cCount = 0;
        int nCount = 0;
        for(int i=0;i<c.length;i++){
            if(c[i]>='a' && c[i]<='z' || c[i]>='A' && c[i]<='Z'){
                cCount++;
            }
            if(c[i]>='0' && c[i]<='9'){
                nCount++;
            }
        }
        System.out.println("The number of characters in the string is : "+nCount);
        System.out.println("The char of characters in the string is : "+cCount);
    }
}
